package com.ruoyi.back.controller.v3

import com.ruoyi.app.common.PageData
import com.ruoyi.app.common.pageInfo
import com.ruoyi.back.domain.v3.SensitiveWordRecord
import com.ruoyi.back.service.v3.SensitiveWordRecordSearchDto
import com.ruoyi.back.service.v3.SensitiveWordRecordService
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController


@RestController
@RequestMapping("/system/sensitiveWordRecord")
@Api(tags = ["敏感词记录"])
class SensitiveWordRecordController {

    @Autowired
    private lateinit var sensitiveWordRecordService: SensitiveWordRecordService


    @GetMapping("select")
    @ApiOperation("获取敏感词记录列表")
    fun selectSensitiveWordRecordList(sensitiveWordRecordSearchDto: SensitiveWordRecordSearchDto): PageData<SensitiveWordRecord> =
        sensitiveWordRecordService.selectSensitiveWordRecordList(sensitiveWordRecordSearchDto).pageInfo()
}